//
//  DownLoadOpration.h
//  断点下载PDF
//
//  Created by 徐凯 on 16/5/13.
//  Copyright © 2016年 cqjtu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DownLoadBase.h"
#import "WHC_DownloadObject.h"
#import "UIView+WHC_Loading.h"
#import "UIView+WHC_ViewProperty.h"
#import "UIView+WHC_Toast.h"
#import "AppDelegate.h"
#import "WHCNetWorkKit.h"
#import "PDFViewVC.h"
#import "DateTimeUtil.h"
@protocol DownLoadDelegate <NSObject>

- (void)pdfDownload:(NSError *)error index:(NSInteger)index strUrl:(NSString *)strUrl;
- (void)updateDownloadValue:(WHC_DownloadObject *)downloadObject index:(NSInteger)index;
- (void)downloadProgress:(WHC_DownloadObject *)downloadObject index:(NSInteger)index;
- (void)downloadFinish:(WHC_DownloadObject*)downloadbject index:(NSInteger)index;
@end

@interface DownLoadOpration : DownLoadBase<WHC_DownloadDelegate>{
    
    WHC_DownloadObject          * _downloadObject;
}

@property (nonatomic , weak) id<DownLoadDelegate> delegate;
@property (nonatomic , assign) NSInteger index;
- (void) initWithDownloadObject: (WHC_DownloadObject*) object index: (NSInteger) index;
- (void) clickElmentReponse;
@end
